package com.sunagy.demand.front.exception;

import lombok.Data;

/**
 * desc：#TODO fill me ！
 * author：三餘無夢生
 * date：2018/4/27
 * time：下午2:43
 */
@Data
public class PrivilegeException extends RuntimeException {
    private Integer code;
    private String reason;

    public PrivilegeException(Integer code){
        super(code.toString(), null);
        this.code = code;
    }

    public PrivilegeException(Integer code, String reason) {
        super(code.toString());
        this.code = code;
        this.reason = reason;
    }
}
